Rate adaptive atrial pacing using a dual-chamber pacemaker